package com.nisure.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nisure.dao.AdgroupDao;
import com.nisure.info.AdgroupTypeInfo;
import com.nisure.service.AdgroupService;

@Service
public class AdgroupServiceImpl implements AdgroupService{

	@Autowired
	AdgroupDao adgroupDao;
	@Override
	public int saveAllAdgroup(List<AdgroupTypeInfo> adgroupTypeInfo) {
		// TODO Auto-generated method stub
		return adgroupDao.saveAllAdgroup(adgroupTypeInfo);
	}
	@Override
	public int deleteAllAdgroup(List<Long> userId) {
		// TODO Auto-generated method stub
		return adgroupDao.deleteAllAdgroup(userId);
	}
	
	public List<Map<String, Object>> queryAdgroup(Map<String, Object> map){
	
		return adgroupDao.queryAdgroup(map);
	}

}
